import request from '@/utils/request'

/**
 * 删除
 */
export function deleteObject(data) {
  return request({
    url: '/vueStudent/batchDelete',
    method: 'post',
    data
  })
}

/**
 * 编辑
 */
export function updateObject(data) {
  return request({
    url: '/vueStudent/update',
    method: 'post',
    data
  })
}

/**
 * 新增
 */
export function addObject(data) {
  return request({
    url: '/vueStudent/save',
    method: 'post',
    data
  })
}

/**
 * 查询所有学生信息
 */
export function getAllStudentList() {
  return request({
    url: '/vueStudent/list',
    method: 'get',
  })
}

/**
 * 查询首页图表数据
 */
export function getHomeData() {
  return request({
    url: '/vueStudent/getHomeData',
    method: 'get',
  })
}

/**
 * 分页查询
 */
export function getStudentList(data) {
  return request({
    url: '/vueStudent/pagelist',
    method: 'post',
    data
  })
}

/**
 * 测试数据
 */
export function test01() {
  return request({
    url: '/vueStudent/test02',
    method: 'get',
  })
}
